package ObserableModel;

/**
 * @author
 * @create 2018-10-18 12:48
 **/
public class StudentObserver implements  Observer {

    private String name;

    public StudentObserver(String name){
        this.name = name;
    }

    @Override
    public void update(String info) {

        System.out.println(name+"收到信息： "+info);
    }
}
